﻿<%@ Page Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" CodeFile="Profesores.aspx.cs" Inherits="Profesor_profesores" Title="Untitled Page" %>

<%@ Register Src="../../Controles/TipoDocumento.ascx" TagName="TipoDocumento" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageContainer" Runat="Server">
<table>
<tr>
<td style="height: 538px">
<fieldset title="Profesores"><Table><tr style="display:none;"><td class="input-caption">IdProfesor</td><td><asp:TextBox ID="txtIdProfesor" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr><td class="input-caption">Apellido</td><td><asp:TextBox ID="txtApellido" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr><td class="input-caption">Nombre</td><td><asp:TextBox ID="txtNombre" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr><td class="input-caption">Domicilio</td><td><asp:TextBox ID="txtDomicilio" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr><td class="input-caption">Telefono</td><td><asp:TextBox ID="txtTelefono" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr><td class="input-caption">Email</td><td>
    <asp:TextBox ID="txtEmail" runat="server" cssClass="input-text"></asp:TextBox>
    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
        ErrorMessage="Ingrese un Email Válido" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
    </td></tr>
    <tr>
        <td class="input-caption">
            Tipo Documento</td>
        <td>
            <uc1:TipoDocumento id="TipoDocumento1" runat="server">
            </uc1:TipoDocumento>
         </td>
    </tr>
<tr><td class="input-caption">NroDocumento</td><td><asp:TextBox ID="txtNroDocumento" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr class="none"><td class="input-caption">IdTipoDoc</td><td><asp:TextBox ID="txtIdTipoDoc" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr><td class="input-caption">FechaNacimiento</td><td><asp:TextBox ID="txtFechaNacimiento" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr><td class="input-caption">Usuario</td><td><asp:TextBox ID="txtUsuario" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr><td class="input-caption">Clave</td><td><asp:TextBox ID="txtClave" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr class="none"><td class="input-caption">Activo</td><td><asp:TextBox ID="txtActivo" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr><td colspan='2' style="height: 62px">
    <asp:Label ID="txtBody" runat="server" Height="66px" Text="Label" Visible="False"
        Width="420px"></asp:Label></td></tr><tr><td colspan='2' class='barButtons'>
    <asp:Button ID='cmdSendMail' runat='server' Text='Enviar Pass'  CssClass='input-button' Visible="False" OnClick="cmdSendMail_Click" />
    <asp:Button ID='cmdAccion' runat='server' Text='Aceptar'  CssClass='input-button' OnClick="cmdAccion_Click" />
<asp:Button ID='cmdCancelar' runat='server' CssClass='input-button' Text='Cancelar' /></td></tr>
    <tr>
        <td class="barButtons" colspan="2">
            <asp:Label ID="lblMensaje" runat="server"></asp:Label></td>
    </tr>
</Table></fieldset>
</td>
</tr>

</table>
    <asp:GridView ID="GridView1" runat="server"
        AutoGenerateColumns="False"
        EmptyDataText="No hay registros de datos para mostrar." 
        OnSelectedIndexChanged="GridView1_SelectedIndexChanged" 
        OnRowDeleting="GridView1_RowDeleting" 
        OnPageIndexChanged="GridView1_PageIndexChanged" 
        OnPageIndexChanging="GridView1_PageIndexChanging" 
        >
        <Columns>
            <asp:BoundField DataField="IdProfesor" HeaderText="IdProfesor" ReadOnly="True" SortExpression="IdProfesor" />
            <asp:BoundField DataField="Apellido" HeaderText="Apellido" />
            <asp:BoundField DataField="Nombre" HeaderText="Nombre" />
              <asp:TemplateField ShowHeader="False">
                            <ItemTemplate>
                                <div id="noprint">
                                    <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" CommandName="Select"
                                        ImageUrl="~/Images/b_edit.gif" Text="Ver" />
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
            <asp:TemplateField>
            <ItemTemplate>
                <div id="noprint">
                    <asp:ImageButton ID="ImageButton2" runat="server" CausesValidation="False" CommandName="Delete"
                        ImageUrl="~/Images/delete.gif" Text="Delete" />
                </div>
            </ItemTemplate>
            </asp:TemplateField>
            
        </Columns>
    </asp:GridView>
</asp:Content>

